package android.slc.query.entity;

/**
 * @author slc
 * @date 2022/03/12 下午 4:45
 */
public class QUserDateInfo extends QDateInfo {
    private Long userId;

    private Long deptId;

    private Long itemId;

    public QUserDateInfo() {
    }

    public QUserDateInfo(Long userId, Long deptId, Integer year, Integer month, Long itemId) {
        this.userId = userId;
        this.deptId = deptId;
        this.year = year;
        this.month = month;
        this.itemId = itemId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Long getItemId() {
        return itemId;
    }

    public void setItemId(Long itemId) {
        this.itemId = itemId;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static class Builder {
        private Long userId;
        private Long deptId;
        private Integer year;
        private Integer month;
        private Long itemId;

        public Builder userId(Long userId) {
            this.userId = userId;
            return this;
        }

        public Builder deptId(Long deptId) {
            this.deptId = deptId;
            return this;
        }

        public Builder year(Integer year) {
            this.year = year;
            return this;
        }

        public Builder month(Integer month) {
            this.month = month;
            return this;
        }

        public Builder itemId(Long itemId) {
            this.itemId = itemId;
            return this;
        }


        public QUserDateInfo build() {
            return new QUserDateInfo(userId, deptId, year, month, itemId);
        }
    }
}
